/*
 * Copyright (c) 2006 - 2022, webrx.cn All rights reserved.
 *
 */
package cn;

import java.util.Calendar;

/**
 * <p>Project: app2022 - Str5
 * <p>Powered by webrx On 2022-01-12 16:06:18
 *
* @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class Str5 {
    public static void main(String[] args) {
        var c = Calendar.getInstance();
        var d = c.get(Calendar.DAY_OF_WEEK) - 1;//1 - 7
        System.out.printf("今日：星期%s","日一二三四五六".substring(d,d+1));
        System.out.println();
        System.out.printf("今日：星期%s","日一二三四五六".charAt(d));

    }
}
